package day3.demo1.demo2;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

public class collectionsTest {
    public static void main(String[] args) {
        List list = new ArrayList<>();
        list.add("one");
        list.add("two");
        list.add("three");
//        Collections.sort(list);
        Collections.reverse(list);
        for (Object o : list) {
            System.out.println(o);
        }
    }
}
